package com.XinYun.Library.modules.Login.Service;

import com.XinYun.Library.modules.Login.Entity.User;

import java.sql.SQLException;

public interface UserService {
    /**
     * 根据邮箱找到用户信息，从而判断其学号与邮箱是否匹配
     *
     * @param sid
     * @return
     */
    String findUserBySid(String sid) throws SQLException;

    /**
     * 判断数据库中用户的密码是否更改成功
     * @param password
     * @param sid
     * @return
     * @throws SQLException
     */
    boolean updatePwd(String password,String sid) throws SQLException;
}
